package com.dkm.dkmproject.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author 周佳佳
 * @since 2020-04-26
 */
@TableName("order_tb")
public class OrderTb extends Model<OrderTb> {

    private static final long serialVersionUID = 1L;

    /**
     * 订单主键
     */
	@TableId(value="or_id", type= IdType.AUTO)
	private String orId;
    /**
     * 主键
     */
	@TableField("scb_id")
	private Integer scbId;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * pdf附件 地址
     */
	@TableField("or_file")
	private String orFile;
    /**
     * 订单总金额
     */
	@TableField("or_money")
	private BigDecimal orMoney;
    /**
     * 订单状态1已付款,2待付款,3已取消
     */
	@TableField("or_state")
	private Integer orState;
    /**
     * 下单类型 1为直接付款，2为拍照合同付款 3为合同付款
     */
	@TableField("or_content")
	private String orContent;
    /**
     * 一次/一年 1为一次  2为一年
     */
	@TableField("or_img")
	private String orImg;
    /**
     * 拍照图片1
     */
	@TableField("or_phone")
	private String orPhone;
    /**
     * 拍照图片2
     */
	@TableField("or_note")
	private String orNote;
    /**
     * 拍照图片3
     */
	private String exp1;
    /**
     * 拓展字段2
     */
	private String exp2;
    /**
     * 拓展字段3 购买次数
     */
	private String exp3;
    /**
     * 服务人名字
     */
	@TableField("or_fwname")
	private String orFwname;
    /**
     * 服务人电话
     */
	@TableField("or_fwphone")
	private Date orFwphone;
	/**
	 * 1代表业务人员没分配提成 0代表已经分配
	 */
	@TableField("or_isva")
	private Integer orIsva;

	/**
	 * 业务人员电话
	 */
	@TableField("or_phone_one")
	private String orPhoneOne;
	/**
	 * 合同附件
	 */
	private MultipartFile file1;
	/**
	 * 拍照上传合同1
	 */
	private MultipartFile file2;
	/**
	 * 拍照上传合同2
	 */
	private MultipartFile file3;
	/**
	 * 拍照上传合同3
	 */
	private MultipartFile file4;
	/**
	 * 合同内容
	 */
	private String content;
	/**
	 * 服务方名称
	 */
	private String scbName;
	/**
	 * 合同签字的bash64
	 */
	private String bashName;

	/**
	 * 转换时间
	 */
	private String simpleDate;

	/**
	 * 合同分类
	 */
	private String type;
	/**
	 * 小区名字
	 */
	private String name;

	/**
	 * 甲方
	 */
	private String userName;

	/**
	 * 物业名字
	 */
	private String property;

	/**
	 * 工作地点
	 */
	private String addRess;

	/**
	 * 期限
	 */
	private String date;

	/**
	 * 金额
	 */
	private String money;

	/**
	 * 甲方联系人
	 */
	private String contact;

	/**
	 * 甲方联系人电话
	 */
	private String phone;

	/**
	 * 甲方签字
	 */
	private String signature;

	/**
	 * 乙方联系人
	 */
	private String contactTwo;

	/**
	 * 乙方联系人电话
	 */
	private String phoneTwo;

	/**
	 * 微信头像地址
	 */
	private String wecahtWechatimg;
	/**
	 * 微信名字地址
	 */
	private String wechatName;

	private String dateOne;
	/**
	 * 服务类型名字
	 */
	private String syName;

	public String getSyName() {
		return syName;
	}

	public void setSyName(String syName) {
		this.syName = syName;
	}

	public String getDateOne() {
		return dateOne;
	}

	public void setDateOne(String dateOne) {
		this.dateOne = dateOne;
	}

	public String getWechatName() {
		return wechatName;
	}

	public void setWechatName(String wechatName) {
		this.wechatName = wechatName;
	}

	public String getWecahtWechatimg() {
		return wecahtWechatimg;
	}

	public void setWecahtWechatimg(String wecahtWechatimg) {
		this.wecahtWechatimg = wecahtWechatimg;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}

	public String getAddRess() {
		return addRess;
	}

	public void setAddRess(String addRess) {
		this.addRess = addRess;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getContactTwo() {
		return contactTwo;
	}

	public void setContactTwo(String contactTwo) {
		this.contactTwo = contactTwo;
	}

	public String getPhoneTwo() {
		return phoneTwo;
	}

	public void setPhoneTwo(String phoneTwo) {
		this.phoneTwo = phoneTwo;
	}

	public String getOrPhoneOne() {
		return orPhoneOne;
	}

	public void setOrPhoneOne(String orPhoneOne) {
		this.orPhoneOne = orPhoneOne;
	}

	public String getSimpleDate() {
		return simpleDate;
	}

	public void setSimpleDate(String simpleDate) {
		this.simpleDate = simpleDate;
	}

	public String getScbName() {
		return scbName;
	}

	public void setScbName(String scbName) {
		this.scbName = scbName;
	}

	public Integer getOrIsva() {
		return orIsva;
	}

	public void setOrIsva(Integer orIsva) {
		this.orIsva = orIsva;
	}

	public MultipartFile getFile2() {
		return file2;
	}

	public void setFile2(MultipartFile file2) {
		this.file2 = file2;
	}

	public MultipartFile getFile3() {
		return file3;
	}

	public void setFile3(MultipartFile file3) {
		this.file3 = file3;
	}

	public MultipartFile getFile4() {
		return file4;
	}

	public void setFile4(MultipartFile file4) {
		this.file4 = file4;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getBashName() {
		return bashName;
	}

	public void setBashName(String bashName) {
		this.bashName = bashName;
	}

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public MultipartFile getFile1() {
		return file1;
	}

	public void setFile1(MultipartFile file1) {
		this.file1 = file1;
	}

	public String getOrId() {
		return orId;
	}

	public void setOrId(String orId) {
		this.orId = orId;
	}

	public Integer getScbId() {
		return scbId;
	}

	public void setScbId(Integer scbId) {
		this.scbId = scbId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getOrFile() {
		return orFile;
	}

	public void setOrFile(String orFile) {
		this.orFile = orFile;
	}

	public BigDecimal getOrMoney() {
		return orMoney;
	}

	public void setOrMoney(BigDecimal orMoney) {
		this.orMoney = orMoney;
	}

	public Integer getOrState() {
		return orState;
	}

	public void setOrState(Integer orState) {
		this.orState = orState;
	}

	public String getOrContent() {
		return orContent;
	}

	public void setOrContent(String orContent) {
		this.orContent = orContent;
	}

	public String getOrImg() {
		return orImg;
	}

	public void setOrImg(String orImg) {
		this.orImg = orImg;
	}

	public String getOrPhone() {
		return orPhone;
	}

	public void setOrPhone(String orPhone) {
		this.orPhone = orPhone;
	}

	public String getOrNote() {
		return orNote;
	}

	public void setOrNote(String orNote) {
		this.orNote = orNote;
	}

	public String getExp1() {
		return exp1;
	}

	public void setExp1(String exp1) {
		this.exp1 = exp1;
	}

	public String getExp2() {
		return exp2;
	}

	public void setExp2(String exp2) {
		this.exp2 = exp2;
	}

	public String getExp3() {
		return exp3;
	}

	public void setExp3(String exp3) {
		this.exp3 = exp3;
	}

	public String getOrFwname() {
		return orFwname;
	}

	public void setOrFwname(String orFwname) {
		this.orFwname = orFwname;
	}

	public Date getOrFwphone() {
		return orFwphone;
	}

	public void setOrFwphone(Date orFwphone) {
		this.orFwphone = orFwphone;
	}

	@Override
	protected Serializable pkVal() {
		return this.orId;
	}

	@Override
	public String toString() {
		return "OrderTb{" +
			"orId=" + orId +
			", scbId=" + scbId +
			", userId=" + userId +
			", orFile=" + orFile +
			", orMoney=" + orMoney +
			", orState=" + orState +
			", orContent=" + orContent +
			", orImg=" + orImg +
			", orPhone=" + orPhone +
			", orNote=" + orNote +
			", exp1=" + exp1 +
			", exp2=" + exp2 +
			", exp3=" + exp3 +
			", orFwname=" + orFwname +
			", orFwphone=" + orFwphone +
			"}";
	}
}
